package com.tencent.mm.opensdk.modelbiz;

import android.os.Bundle;
import com.tencent.mm.opensdk.b.d;
import com.tencent.mm.opensdk.modelbase.BaseReq;
import com.tencent.mm.opensdk.modelbase.BaseResp;

public class JoinChatroom {
    public class Req extends BaseReq {
        public String chatroomNickName;
        public String extMsg;
        public String groupId;

        public Req() {

            this.groupId = "";
        }

        public boolean checkArgs() {
            boolean v0 = d.a(this.groupId) ? false : true;
            return v0;
        }

        public int getType() {
            return 15;
        }

        public void toBundle(Bundle arg3) {
            super.toBundle(arg3);
            arg3.putString("_wxapi_join_chatroom_group_id", this.groupId);
            arg3.putString("_wxapi_join_chatroom_chatroom_nickname", this.chatroomNickName);
            arg3.putString("_wxapi_join_chatroom_ext_msg", this.extMsg);
            arg3.putString("_wxapi_basereq_openid", this.openId);
        }
    }

    public static class Resp extends BaseResp {
        public String extMsg;

        public Resp() {

        }

        public Resp(Bundle arg1) {

            this.fromBundle(arg1);
        }

        public boolean checkArgs() {
            return true;
        }

        public void fromBundle(Bundle arg2) {
            super.fromBundle(arg2);
            this.extMsg = arg2.getString("_wxapi_join_chatroom_ext_msg");
        }

        public int getType() {
            return 15;
        }

        public void toBundle(Bundle arg3) {
            super.toBundle(arg3);
            arg3.putString("_wxapi_join_chatroom_ext_msg", this.extMsg);
        }
    }

    private JoinChatroom() {

    }
}

